﻿<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>消息中心</title>
        <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"/>
        <meta content="yes" name="apple-mobile-web-app-capable"/>
        <meta content="black" name="apple-mobile-web-app-status-bar-style"/>
        <meta content="telephone=no" name="format-detection"/>
        <link href="/css/styles.css" rel="stylesheet" type="text/css"/>
        <link rel="stylesheet" href="/js/bootstrap/css/bootstrap.min.css">
        <link rel="stylesheet" href="/css/font/css/font-awesome.min.css"/>
        <link rel="stylesheet" href="/css/reset.css">
        <script src="/js/jquery/jquery.min.js"></script>
        <script src="/js/plugins/jrender/jrender.min.js"></script>
        <script src="/js/plugins/jquery-form/jquery.form.js"></script>
        
        <script>
            $(function () {
                //先接收共享过来的用户数据
                var userStr = sessionStorage.getItem("user")
                var user = JSON.parse(userStr);
                console.log(user.id);
                $.get("/strategyComments/getMyComments/"+user.id,function (data) {
                    console.log(data);
                    $(".aui-scrollView").renderValues({list:data},{
                        setHref:function (item, value) {
                            $(item).attr("href",$(item).attr("href")+value)
                        }
                    })


                })

            })
        </script>
    </head>
    <body>
        <section class="aui-flexView">
            <header class="aui-navBar aui-navBar-fixed">
                <div class="col">
                    <a href="javascript:history.go(-1);">
                        <span><i class="fa fa-chevron-left" ></i></span>
                    </a>
                </div>
                <div class="aui-center">
                    <span class="aui-center-title">我的评论</span>
                </div>
                <a href="javascript:;" class="aui-navBar-item">
                    <i class="icon icon-member"></i>
                </a>
            </header>

            <section class="aui-scrollView">
                <div class="aui-layout" render-loop="list">
                    <div class="aui-layout-item">
                        <div class="aui-layout-item-img ">
                            <a href="/userProfiles.html?id=" render-fun="setHref" render-key="list.user.id">
                                <img render-src="list.user.headImgUrl">
                                <h6 render-html="list.user.nickName"></h6>
                            </a>
                        </div>
                        <div class="aui-layout-item-text">
                            <a href="/strategyComment.html?id=" render-fun="setHref" render-key="list.id">
                                <p>from:<p render-html="list.strategy.title"></p></p>
                                <p render-html="list.content"></p>
                            </a>
                        </div>
                    </div>

                    </div>
                </div>
            </section>
        </section>
    </body>
</html>
